//
//  JPFServer.h
//  JPFCoreKit
//
//  Created by jpf on 2020/2/3.
//  Copyright © 2020 JPF All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JPFHttpConst.h"

NS_ASSUME_NONNULL_BEGIN


@interface JPFServer : NSObject


- (NSURLSessionDataTask *)POST:(NSString *)requestUrl
                    parameters:(NSDictionary *)parameters
                    completion:(void (^)(BOOL success, NSDictionary *resObj, NSString *message,NSError *error))completion;

- (NSURLSessionDataTask *)POST:(NSString *)URLString
                    parameters:(NSDictionary *)parameters
                      dataType:(JPFServiceDataType)dataType
                    completion:(void (^)(BOOL success, NSDictionary *resObj, NSString *message,NSError *error))completion;

- (NSURLSessionDataTask *)POST:(NSString *)requestUrl
                          data:(NSData *)data
                        header:(id)header
                    completion:(void (^)(BOOL success, NSDictionary *resObj, NSString *message,NSError *error))completion;

@end

NS_ASSUME_NONNULL_END
